TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

#=============================
# build an ioc application

PROD_IOC_vxWorks = smTest

DBD += smTest.dbd
# smTest.dbd will be made up from these files:
smTest_DBD += base.dbd
#include definitions for any other support applications needed
smTest_DBD += genSubRecord.dbd
smTest_DBD += vxStats.dbd
smTest_DBD += epicsSMDev.dbd
smTest_DBD += as.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
smTest_SRCS += smTest_registerRecordDeviceDriver.cpp
smTest_SRCS_DEFAULT += smTestMain.cpp
smTest_SRCS_vxWorks += -nil-
smTest_SRCS_vxWorks += smWfComp.c

#The following adds support from base/src/vxWorks
smTest_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

#add a definition for each support application used by this application
smTest_LIBS += vxStats
smTest_LIBS += genSub
smTest_LIBS += epicsSMDev
smTest_LIBS += autosave
smTest_LIBS += $(EPICS_BASE_IOC_LIBS)


#NOTES:
#      1)It is not possible to build sncExample both as a component of smTest
#        and standalone. You must choose only one.
#      2)To build sncExample SNCSEQ must be defined in <top>/configure/RELEASE

#The following builds sncExample as a component of smTest
#smTest_SRCS += sncExample.stt

#The following builds sncExample as a standalone application
#PROD_HOST += sncExample
#sncExample_SNCFLAGS += +m
#sncExample_SRCS += sncExample.stt
#sncExample_LIBS += seq pv
#sncExample_LIBS += $(EPICS_BASE_HOST_LIBS)

#===========================

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE

